package com.wzdigit.wms.basic.client.response.basic;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 用户数据权限输出
 * 
 * @author yangdongjie
 * @WarehouseAttrResponse.java
 * @2020年12月31日下午5:18:20
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = { "hibernateLazyInitializer", "handler", "fieldHandler" }, ignoreUnknown = true)
public class UserDataPermissionResponse implements Serializable {

	private static final long serialVersionUID = -9035791079078625260L;

	/**
     * 权限ID
     */
    @ApiModelProperty(value = "权限ID", required = true)
    private Integer permId;
    
    /**
     * 权限名称
     */
    @ApiModelProperty(value = "权限名称", required = true)
    private String permName;

    /**
     * 是否已授权
     */
    @ApiModelProperty(value = "是否已授权", required = true)
    private Boolean isGranted;
    
    /**
     * 子权限列表
     */
    @ApiModelProperty(value = "子权限列表", required = false)
    private List<UserDataPermissionResponse> childPerms;
}
